package com.chb.javabasic.Controller;

public class GenericMethodController {
    // 泛型
    public static <E> void printArrray(E[] inputArray) {
        for(E arr : inputArray) {
            System.out.print(arr);
        }
    }

    public static void main(String[] args) {
        Integer[] intArray = {1,2,3,4,5};
        Character[] charactearrray = {'H','e','l','l','o'};
        Double[] doubleArray = {1.1,2.2,3.3,4.4,5.5};
        printArrray(intArray);
        printArrray(charactearrray);
        printArrray(doubleArray);
    }
}
